package factoryMethod;

public class Client {
	public static void main(String[] args) {
		//由每个具体工厂生产出具体的产品，客户使用具体产品
		Driver driver = new BenzDriver();
		Car car = driver.driverCar();
		car.drive();
		
		Driver driver2 = new BmwDriver();
		Car car2 = driver2.driverCar();
		car.drive();
	}
}
